From 1c1e376439e41c66c00beb6422907979a24b3514 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 25 Dec 2007 16:56:20 +0000 Subject: [PATCH] (comint-mode-map): Explicitly bind `delete' and `kp-delete' so they never do EOF. --- lisp/comint.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/comint.el b/lisp/comint.el index 047cc3b80fb..96c36f3496f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -453,6 +453,10 @@ executed once when the buffer is created." (define-key map "\e\C-l" 'comint-show-output) (define-key map "\C-m" 'comint-send-input) (define-key map "\C-d" 'comint-delchar-or-maybe-eof) + ;; The following two are standardly aliased to C-d, + ;; but they should never do EOF, just delete. + (define-key map [delete] 'delete-char) + (define-key map [kp-delete] 'delete-char) (define-key map "\C-c " 'comint-accumulate) (define-key map "\C-c\C-x" 'comint-get-next-from-history) (define-key map "\C-c\C-a" 'comint-bol-or-process-mark) -- 2.30.2